/* 
 * File:   seedconstantstest.cpp
 * Author: dolphinigle
 *
 * Created on March 11, 2011, 2:51 PM
 */

#include <stdlib.h>
#include "gtest/gtest.h"
#include "seedconstants.hpp"
#include "plantconstants.hpp"

TEST(SeedConstantsTest, Consistency) {

  EXPECT_TRUE(SeedConstants::getSeedsCount() >= 0);
  for (int i = 0; i < SeedConstants::getSeedsCount(); ++i) {
    int pid = SeedConstants::getPlantIdFromSeed(i);
    EXPECT_TRUE(pid >= 0 && pid < PlantConstants::getPlantCount());
    EXPECT_GT(SeedConstants::getSeedBuyPrice(i), -1000000010);
    EXPECT_GT(SeedConstants::getSeedSellPrice(i), -1000000010);
    EXPECT_NE(SeedConstants::getSeedName(i), "_");
  }
}